<?php
/**
 * CEOfox
 *
 * @copyright  Copyright 2011-2012 CEOfox, Inc.
 * @license    http://ceofox.com/pages/license
 * @version    $Id: notification.class.php 97088 2013-05-24 09:40:17 $
 * @author     CEOfox, Inc.
 */
?>
<?php
defined('PHPFOX') or exit('NO DICE!');
class Follow_Component_Controller_Notification extends Phpfox_Component
{
    public function process()
    {
        Phpfox::isUser(true);
        
        $iPage = $this->request()->getInt('page');
        $iPageTotal = 100;
        list($iCnt, $aNotifications) = Phpfox::getService('follow.notifications')->getForBrowse($iPage, $iPageTotal);
        $this->template()->setTitle(Phpfox::getPhrase('notification.notifications'))
            ->setBreadcrumb(Phpfox::getPhrase('notification.notifications'), $this->url()->makeUrl('notification'))
            ->setHeader(array(    
                    'view.css' => 'module_notification',
                    'view.js' => 'module_notification'
                )
            )
            ->assign(array(
                    'aNotifications' => $aNotifications,
                    'iTimeOut' => Phpfox::getParam('follow.refresh_notification'),
                )
            );
    }
}
  
?>
